import Vue from  'vue';
import Vuex from  'vuex';
Vue.use(Vuex);

const actions={};
const  mutations={
    changeMenuData(state,payload){
        console.log(payload);
        state.menuList=payload;
    }
};
const state={
    menuList:[]
};

const  store = new Vuex.Store({
    namespaced:true,
    actions,
    mutations,
    state
});

export default store;